const baseUrl = 'http://localhost:3000'
export const http = (url, method, data) => {
	const promise = new Promise((resolve) => {
		uni.request({
			url: baseUrl + url,
			method: method,
			data: data,
			success: (res) => {
				resolve(res)
			},
		})
	})
	return promise
}